package com.inspur.cmis.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inspur.cmis.mapper.ClientMgrMapper;
import com.inspur.cmis.pojo.ClientManager;
import com.inspur.cmis.service.ClientMgrService;




@Service("clientMgrService")
public class ClientMgrServiceImpl implements ClientMgrService {
	@Autowired
	private ClientMgrMapper clientMgrMapper;
	
	
	
	 // 查询客户经理信息
	 
	public List<ClientManager> getClientMgrList(HashMap<String, Object> map){
		return clientMgrMapper.getClientMgrList(map);
	}
	
	
	
	  //删除客户经理信息
	 
	public void deleteMgr(String mgrId[]){
		clientMgrMapper.deleteMgr(mgrId);
	}
	
	 // 根据id获取客户经理级别信息
	 
	public ClientManager getClientMgrInfo(String mgrId){
		return clientMgrMapper.getClientMgrInfo(mgrId);
	}
	
	//// 添加客户经理信息
	 
	public void clientMgrAdd(ClientManager clientMgr){
		clientMgrMapper.clientMgrAdd(clientMgr);
	}


	//导出查询
	public List<HashMap<String,Object>> getClientMgrListForExp(HashMap<String, Object> map){
		return clientMgrMapper.getClientMgrforExport(map);



	
}



	@Override
	public void importClientMgrList(List<ClientManager> clientMgrList) {
		clientMgrMapper.importClientMgrList(clientMgrList);
		
	}}